#Tetris for AVR microcontrollers and cascading LED matrix based on MAX7219 IC driver

Created for [Interplay Medium™](https://interplaymedium.org) project

![Interplay Medium™ AVR LED Tetris](https://repository.interplaymedium.org/AVR-LED-Tetris/LEDtetris.avi.gif)  
[Full video with sound](https://repository.interplaymedium.org/AVR-LED-Tetris/LEDtetris.avi)

## Wiring 

    LED PCB pinout | GND | Click | CS load | Din | Snd | +5v  
    -------------- | --- |------ | ------- | --- | --- | ---
    Arduino pins   | GND | 13    | 12      | 11  | 10  |+5v  

## Compile and flash

Compiled and tested on AVR Atmega 168 (Arduino Diecimila)

    ./make
    ./flash

## Testing

    screen <path to your device> 9600

Use arrow keys to play

Read wiki for details

- [How to compile and flash](https://wiki.interplaymedium.org/index.php/InterplayMedium/LEDTetris) it with Arduino
- [General instruction](http://wiki.interplaymedium.org/index.php/InterplayMedium/AxonAmpArduino) for Adruino + IM AXOD microserver integration

![MAX7219 IC driver, LED matrix PCB](https://repository.interplaymedium.org/AVR-LED-Tetris/LED_matrix_pcb.jpeg)

## Extras 

Please find mask template + nice stickers [here](https://repository.interplaymedium.org/AVR-LED-Tetris/cover.svg)

## License

Copyright © 2010 Dmitry Shalnov [interplaymedium.org]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this files except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.




